/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.bth.ke.firstfriend.dto;

import java.util.ArrayList;
import java.util.List;
import se.bth.ke.firstfriend.model.article.WeakAssociation;

/**
 *
 * @author nico.rehwaldt
 */
public class ArticleAssociationsDTO {
    
    private List<WeakAssociation> rules = new ArrayList();
    
    public ArticleAssociationsDTO(List<WeakAssociation> rules) {
        this.rules = rules;
    }
    
    public void addAssociationRule(WeakAssociation rule) {
        rules.add(rule);
    }

    /**
     * @return the rules
     */
    public List<WeakAssociation> getRules() {
        return rules;
    }    
}
